package com.htl.线程;

public class Test {
    public static void main(String[] args) {
        new Thread(()->{
            for (int i = 0; i <100; i++) {
                System.out.println(i);
                if (i == 50) {
                    try {
                        Thread.sleep(2000);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        }).start();

    }
}
